package com.powernode.common;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *统计项目的返回数据对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private Integer code = 0; //状态码
    private String msg = ""; //消息
    private Long count = 0L; //数量,针对于layui的数据表格
    private Object data;  //数据


    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
